package com.brsya.movie.contract;

import com.brsya.base.base.BaseView;
import com.brsya.base.bean.BaseListBean;
import com.brsya.base.bean.InventoryBean;

import java.util.List;
import java.util.Map;

import io.reactivex.rxjava3.core.Observable;

/**
 * Created by Brsya
 * CreateDate: 2022/7/7  9:30
 * Description:
 * 片单
 */
public interface InventoryContract {
    interface Model {
        /**
         * 获取片单列表
         */
        Observable<BaseListBean<InventoryBean>> getInventory(Map<String, Object> par);
    }


    interface View extends BaseView {
        /**
         * 显示列表
         *
         * @param inventoryList 片单列表
         */
        void showInventoryList(List<InventoryBean> inventoryList);

        /**
         * 没有数据
         */
        void inventoryNoData();
    }

    interface Presenter {
        /**
         * 获取片单列表
         *
         * @param id 标题id
         */
        void getInventoryList(int id);
    }

}
